package com.beta.cust.bind.datasync.constant;

/**
 * 调用第三方获取数据的接口
 */

public class WxWorkUrlContants {

    private static String WXWORK_DOMAIN_NAME;
    /**
     * 获取企业微信的部门列表
     * 详情见：https://work.weixin.qq.com/api/doc/90000/90135/90208
     */
    public static  String GET_DEP_LIST_URL;
    /**
     * 获取企业微信的单个部门详情
     * 详情见：https://developer.work.weixin.qq.com/document/path/95351
     */
    public static  String GET_DEP_LDETAIL_URL;
    /**
     * 获取部门成员
     * 详情见：https://work.weixin.qq.com/api/doc/90000/90135/90201
     */
    public static  String USER_SIMPLELIST_URL;
    /**
     * 获取企业微信的单个用户详情
     * 详情见：https://developer.work.weixin.qq.com/document/path/90196
     */
    public static  String GET_EMPLOYEE_LDETAIL_URL;
    /**
     * 批量获取客户详情
     * 详情见：https://work.weixin.qq.com/api/doc/90000/90135/92994
     */
    public static  String EXTERNALCONTACT_BATCH_GET_BY_USER_URL;
    /**
     * 获取客户详情
     * 详情见：https://work.weixin.qq.com/api/doc/90000/90135/92114
     */
    public static  String EXTERNALCONTACT_URL;
    /**
     * 获取下游企业token
     * 详情见：https://developer.work.weixin.qq.com/document/path/95816
     */
    public static  String CORP_ACCESS_TOKEN_URL;
    /**
     * 获取下游企业信息列表
     * 详情见：https://developer.work.weixin.qq.com/document/path/95813
     */
    public static  String LIST_APP_SHARE_INFO;

    public static void init(String domainName) {
        WXWORK_DOMAIN_NAME = domainName;
        GET_DEP_LIST_URL = WXWORK_DOMAIN_NAME + "/cgi-bin/department/list?access_token=";
        GET_DEP_LDETAIL_URL = WXWORK_DOMAIN_NAME + "/cgi-bin/department/get?access_token=";
        USER_SIMPLELIST_URL = WXWORK_DOMAIN_NAME + "/cgi-bin/user/list";
        GET_EMPLOYEE_LDETAIL_URL = WXWORK_DOMAIN_NAME + "/cgi-bin/user/get?access_token=";
        EXTERNALCONTACT_BATCH_GET_BY_USER_URL = WXWORK_DOMAIN_NAME + "/cgi-bin/externalcontact/batch/get_by_user?access_token=";
        EXTERNALCONTACT_URL = WXWORK_DOMAIN_NAME + "/cgi-bin/externalcontact/get";
        CORP_ACCESS_TOKEN_URL = WXWORK_DOMAIN_NAME + "/cgi-bin/corpgroup/corp/gettoken?access_token=";
        LIST_APP_SHARE_INFO = WXWORK_DOMAIN_NAME + "/cgi-bin/corpgroup/corp/list_app_share_info?access_token=";
    }


}
